<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>PIO- Administrador- Agregar Profesor</title>
    <script language="javascript" type="text/javascript" src="javascript/formularios.js"></script>
    <meta http-equiv="Content-Language" content="English" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="interfaz/style.css" media="screen" />
  </head>
  <%@include file="validacionAdmin.jsp" %>    
  <body>
    <div id="wrap">

      <div id="header">
        <!--        <h1><a href="#">Website Title</a></h1>-->
      </div>

      <%@include file="tm.jsp" %>

      <div id="content">
        <div class="right"> 
          <h1> Agregar Profesor </h1>
          <html:form action="/AgregarProf" onsubmit="return validaProf(this)">
            <table border="0">
              <tbody>
                <tr>
                  <td>Cedula:</td>
                  <td><html:text maxlength="8" property="cedula"/></td>
                </tr>
                <tr>
                  <td>Nombres:</td>
                  <td><html:text maxlength="20" property="nombres"/></td>
                </tr>
                <tr>
                  <td>Apellidos:</td>
                  <td><html:text maxlength="20" property="apellidos"/></td>
                </tr>
                <tr>
                  <td>Correo:</td>
                  <td><html:text maxlength="80" property="correo"/></td>
                </tr>
                <tr>
                  <td>Nivel:</td>
                  <td><html:select property="nivel">
                          <html:option value="-1">(Selecciona un nivel)</html:option>
                          <html:option value="1">1</html:option>
                          <html:option value="2">2</html:option>
                          <html:option value="3">3</html:option>
                          <html:option value="4">4</html:option>
                      </html:select>                  
                  </td>
                </tr>
              </tbody>
            </table>
            <div class="center">  
              <input id="boton" type="button" value="Volver atras" onclick="location.href = 'adminProfesor.jsp'"/>
              <html:reset styleId="boton" value="Limpiar campos"/>
              <html:submit styleId="boton" value="Ingresar"/><BR/><BR/>
              <div id="alerta">
                <bean:write name="Profesor" property="mensaje" filter="false"/>
              </div>
            </div>
          </html:form>
        </div>

        <%@include file="lm.jsp" %>

        <div style="clear: both;"> </div>

      </div>
    </div>

    <%@include file="footer.jsp" %>

  </body>
</html>
